package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.Education;
import com.ruoyi.system.mapper.EducationMapper;
import com.ruoyi.system.service.IEducationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author ruoyi
 * @date 2023-10-09
 */
@Service
public class EducationServiceImpl implements IEducationService
{
    @Autowired
    private EducationMapper educationMapper;

    /**
     * 查询【请填写功能名称】
     *
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public Education selectEducationById(Long id)
    {
        return educationMapper.selectEducationById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param education 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<Education> selectEducationList(Education education)
    {
        return educationMapper.selectEducationList(education);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param education 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertEducation(Education education)
    {
        return educationMapper.insertEducation(education);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param education 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateEducation(Education education)
    {
        return educationMapper.updateEducation(education);
    }

    /**
     * 批量删除【请填写功能名称】
     *
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteEducationByIds(Long[] ids)
    {
        return educationMapper.deleteEducationByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteEducationById(Long id)
    {
        return educationMapper.deleteEducationById(id);
    }
}
